<!doctype html>
<html>
<head>
    <title>Test Page</title>
    <link type="text/css" rel="stylesheet" href="/assets/dpSyntaxHighlighter.css">
    <link type="text/css" rel="stylesheet" href="../../../build/logger/assets/skins/sam/logger.css">
    <link type="text/css" rel="stylesheet" href="../../../build/slider/assets/skins/sam/slider.css">
    <style type="text/css">
        .offscreen {
            position: absolute;
            left: -9999px;
        }
        span.go   { background: #009; color: #fff; }
        span.stop { background: #900; color: #fff; }
    </style>
</head>
<body class="yui-skin-sam">
<div id="log"></div>
<div class="markup">
    <div id="wrapper" class="offscreen">
    <div id="bg" class="yui-h-slider" tabindex="-1">
        <div id="t" class="yui-slider-thumb">
            <img src="../../../build/slider/assets/thumb-n.gif" alt="slider thumb">
        </div>
    </div>
    </div>
    <input type="button" id="show" value="show">
</div>

<script type="text/javascript" src="../../../build/yahoo/yahoo.js"></script>
<script type="text/javascript" src="../../../build/dom/dom.js"></script>
<script type="text/javascript" src="../../../build/event/event.js"></script>
<script type="text/javascript" src="../../../build/dragdrop/dragdrop.js"></script>
<!--script type="text/javascript" src="../../../build/animation/animation.js"></script-->
<script type="text/javascript" src="../../../build/slider/slider-debug.js"></script>
<script type="text/javascript" src="../../../build/logger/logger.js"></script>
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function () {

var log = new YAHOO.widget.LogReader('log',{ newestOnTop: false }),
    slider,
    startCount = 1,
    endCount = 1;

log.hideCategory('info');
log.hideSource('global');
log.hideSource('Slider');
log.hideSource('LogReader');

slider = YAHOO.widget.Slider.getHorizSlider('bg','t',0,200);
slider.subscribe('slideStart', function (){
    YAHOO.log('slideStart: ' + (startCount++),'GO','debug');
});
slider.subscribe('slideEnd', function () {
    YAHOO.log('slideEnd: ' + (endCount++),'STOP','debug');
});

YAHOO.util.Event.on('show','click',function () {
    YAHOO.util.Dom.removeClass('wrapper','offscreen');
});

});
</script>
<script type="text/javascript" src="/assets/dpSyntaxHighlighter.js" ></script>
<script type="text/javascript" src="/assets/dpSyntaxHighlightExample.js"></script>
</body>
</html>
